<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    //

    protected $table = 'article';

    protected $primaryKey ='article_id';

    protected $guarded = [
        ' _token','url'
    ];


    public function hasOneCategory()
    {
        return $this->hasOne(Category::class,'cate_id','category_id');
    }

}
